package com.aliyun.messagemgt.dto.base;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 基础表-接收组范围表
 * </p>
 *
 * @author wugongzi
 * @since 2021-09-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("接收组范围DTO")
public class BaseReceiveGroupRangeDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("接收组范围id")
    private Long id;

    @ApiModelProperty("接收组ID，对应接收组主表ID")
    private Long groupId;

    @ApiModelProperty("范围类型 ORG-组织 POS-职位 ROLE-角色 USER-用户")
    private String rangeType;

    @ApiModelProperty("范围主体ID")
    private String rangeEntityId;

    @ApiModelProperty("创建人")
    private String creator;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtCreated;

    @ApiModelProperty("修改人")
    private String modifier;

    @ApiModelProperty("修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtModified;

    @ApiModelProperty("attribute1")
    private String attribute1;

    @ApiModelProperty("attribute2")
    private String attribute2;

    @ApiModelProperty("attribute3")
    private String attribute3;


}
